package com.example.javabasic.thread.classone.demo5;

/**
 * 退出程序钩子
 */
public class ExitCaptureTest {
    public static void main(String[] args) {
        //停止钩子
        Runtime.getRuntime().addShutdownHook(new Thread());
    }
}
